package com.dys.designpattern.builder.creater;

import com.dys.designpattern.builder.product.Bike;

/**
 * @Author: 疾风
 * @ClassName: MobikeBuilder
 * @Description: 具体建造者：摩拜共享单车
 * @CreateDate: 2024/05/28
 * @Version: v1.0.0
 */
public class MobikeBuilder extends Builder {
    @Override
    public void buildFrame() {
        super.bike.setFrame("铝合金车架");
    }

    @Override
    public void buildSeat() {
        super.bike.setSeat("真皮座椅");
    }

    @Override
    public Bike createBike() {
        return super.bike;
    }
}
